package com.iflytek.xfapi.controller;

import com.iflytek.xfapi.textModification.textRewriting.TextRewriting;
import org.springframework.web.bind.annotation.*;

/**
 * 文本改写
 */
@RestController
@RequestMapping("/xfapi/changeText")
public class TextRewritingController {
    @GetMapping("/{text}")
    public String getText(@PathVariable("text") String text) {
        String result = new TextRewriting().getTEXT(text);
        System.out.println(result);
        return result;
    }
}
